var express=require('express');
var router=express.Router();

var Exercise=require('../controllers/exerciseCtl.js');

var SaveExercise=Exercise.SaveExercise;
var FetchOneDay=Exercise.FetchOneDay;
var FetchYuYueFormGuestnameO=Exercise.FetchYuYueFormGuestnameO;
var FetchYuYueFormGuestname=Exercise.FetchYuYueFormGuestname;

var FetchOneHour=Exercise.FetchOneHour;

var Population=Exercise.Population;/////////////////////////////

var UpdateExercisePrePlan=Exercise.UpdateExercisePrePlan;

var VagueName=Exercise.VagueName;

var ParseExcel=Exercise.ParseExcel;

var ValidSchedule=Exercise.ValidSchedule;

var SearchGuestExercise=Exercise.SearchGuestExercise;
var AddScheduleExercise=Exercise.AddScheduleExercise;

router.post('/saveExercise',SaveExercise);

router.post('/fetchOneDay',FetchOneDay);

router.post('/fetchYuYueFormGuestnameO',FetchYuYueFormGuestnameO)
router.post('/fetchYuYueFormGuestname',FetchYuYueFormGuestname)

router.post('/population',Population);////////////////////////////
router.post('/fetchOneHour',FetchOneHour);

router.post('/updateExercisePrePlan',UpdateExercisePrePlan);
router.post('/vagueName',VagueName);

router.get('/parseExcel',ParseExcel);

router.post('/validSchedule',ValidSchedule);

router.post('/searchGuestExercise',SearchGuestExercise);
router.post('/addScheduleExercise',AddScheduleExercise);
module.exports=router;
